import request from "@/utils/request";

export function getDisease1(method, data) {
  if (method == "post") {
    return request({
      url: "/elderill1",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderill1",
      method: method,
      params: data,
    });
  }
}
export function getDisease2(method, data) {
  if (method == "post") {
    return request({
      url: "/elderill2",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderill2",
      method: method,
      params: data,
    });
  }
}
export function getDisease3(method, data) {
  if (method == "post") {
    return request({
      url: "/elderill3",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderill3",
      method: method,
      params: data,
    });
  }
}
export function getDisease4(method, data) {
  if (method == "post") {
    return request({
      url: "/elderill4",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderill4",
      method: method,
      params: data,
    });
  }
}
export function getDisease5(method, data) {
  if (method == "post") {
    return request({
      url: "/elderill5",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderill5",
      method: method,
      params: data,
    });
  }
}
export function getMedicineData(method, data) {
  if (method == "post") {
    return request({
      url: "/data/medicine",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/data/medicine",
      method: method,
      params: data,
    });
  }
}
